package com.example.demo.controller;


import com.example.demo.entity.HsgtFundFlow;
import com.example.demo.service.IChineseIndexService;
import com.example.demo.service.IHsgtFundFlowService;
import com.example.demo.utils.R;
import com.example.demo.vo.HsgtFundFlowVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "港股通资金流模块")
@RestController
@RequestMapping("/hsgtFundFlow")
public class HsgtFundFlowController {

    @Autowired
    private IHsgtFundFlowService service;


    @ApiOperation(value = "获取港股通资金流" ,notes = "statu:1-港殷通(沪>港)；2-港股通(深>港）")
    @GetMapping("/select")
    public R<List<HsgtFundFlowVo>> select(){
        return R.success("查询成功",service.selectHsgtFundFlowList());
    }

}
